﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CCOMDataAccess;

public partial class castcom : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SessionManager.isLogged())
        {
            User u = UserManager.getUserInfos(SessionManager.getUserID());
            lLoginName.Text = u.Pseudo;
        }
        else
        {
            lLoginName.Text = "Invite";
            hlLogout.Visible = false;
        }
    }
    protected void bLogout_Click(object sender, EventArgs e)
    {
        UserManager.Logout();
    }
}
